//
//  ShareViewModel.m
//  didacar
//
//  Created by 度周末网络-王腾 on 16/3/24.
//  Copyright © 2016年 dzmmac. All rights reserved.
//

#import "ShareViewModel.h"

@implementation ShareViewModel

+(void)getShareInfo:(DealDataResultBlock)resultBlock{
   
    NSMutableDictionary *postDic = [[NSMutableDictionary alloc ] init];
    [postDic setObj:USERINFOManager.getUserInfo.MemberId forKey:@"MemberId"];
    [postDic setObj:@"0" forKey:@"ShareType"];
    [postDic setObj:@"2" forKey:@"Plat"];
    
  
    [[BaseHttpRequest sharedInstance] sendRequestToPost:@"Share.GetShareInfo" withData:postDic alertMessage:@"" success:^(NSDictionary *dicData) {
        
        ShareEntity *entity = [[ShareEntity alloc ] initWithDictionary:dicData];
        resultBlock(1,entity,nil);
    } error:^(NSString *errorMsg) {
        resultBlock(0,nil,errorMsg);
    }];
    
}

@end


@implementation ShareEntity



@end